var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", {
    value: !0
});
var o = cc._decorator,
    i = o.ccclass,
    a = o.property,
    r = function (e) {
        __extends(t, e);
        function t() {
            var t = null !== e && e.apply(this, arguments) || this;
            t.panel = null;
            return t
        }
        n = t;
        t.prototype.onLoad = function () {
            n.Instance = this
        };
        t.prototype.start = function () {
            if (localStorage.getItem("Hide") != "1") this.openPanel();
        };
        t.prototype.onDestroy = function () {
        };
        t.prototype.openPanel = function () {
            console.log("openPanel");
            SDK.Base.Event.emit("PrivacyPause");
            this.panel.active = !0
        };
        t.prototype.closePanel = function () {
            console.log("closePanel");
            SDK.Base.Event.emit("PrivacyResume");
            this.panel.active = !1
        };
        t.prototype.confirmBtnClick = function () {
            console.log("confirmBtnClick");
            cc.sys.localStorage.setItem("Hide", "1");
            this.closePanel()
        };
        t.prototype.cancelBtnClick = function () {
            console.log("cancelBtnClick");
            SDK.Mgr.Inst.quit()
        };
        var n;
        t.Instance = null;
        __decorate([a(cc.Node)], t.prototype, "panel", void 0);
        return n = __decorate([i], t)
    }(cc.Component);
n.default = r